<template>
  <div style="padding: 10px">
        <el-button type="primary" @click="submit">提交</el-button>
  </div>
</template>

<script>
import exchange from '../insIn8/zh'
import md5 from '../utils/md5'

export default {
    name: 't6',
    data() {
        return {
            tableData: [],
        }
    },
    computed: {

    },
    watch: {
    },
    mounted() {
    },
    methods: {
        async submit() {
            let obj = JSON.parse(JSON.stringify(exchange))
            let appid = '20221117001457783'
            let appkey = 'Oo9OP0pjZqhf2pzQxcvy'
            for (item in obj) {
                let rand = new Date().getTime()
                let sin = appid + obj[item] + rand + appkey
                let res = await this.axios.get(`/api/trans/vip/translate?q=${obj[item]}&from=en&to=zh&appid=2015063000000001&salt=1435660288&sign=f89f9594663708c1605f3d736d01d2d4`)
            }
        },
    },
}
</script>

<style scoped>
</style>